package service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import service.UserService;

import core.service.AbstractService;
import domain.dao.UserDao;
import domain.entity.User;

@Transactional
@Service("userService")
public class UserServiceImpl extends AbstractService<User> implements UserService{

	@Resource
	private UserDao userDao;

	public UserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	@Override
	protected UserDao getDao() {
		userDao.setEm(getEm());
		return userDao;
	}
}
